MAC_HEADER_LEN = 14
FPGA_TIMESTAMP_LEN = 4
SEQ_NUM_LEN = 4
CRC_LEN = 1
IPv4_LEN = 20

#IPv4 config
SRC_IPv4 = "192.168.50.103"
DEST_IPv4 = "192.168.50.30"
PROTOCOL_IPv4 = 0xfd
IDENTIFICATION_IPv4 = 0x3acc
TTL_IPv4 = 0x80


INTERFACE1 = "enp46s0"
INTERFACE1_MAC = "fc:5c:ee:a5:4d:7e"    # b"\xfc\x5c\xee\xa5\x4d\x7e"
INTERFACE2 = "enxf8e43b326267"
INTERFACE2_MAC = "f8:e4:3b:32:62:67"   #b"\xf8\xe4\x3b\x32\x13\x93"
TEST_TOTAL_FRAMES = 100_000
INTERVAL_US = 500       #单位：微秒
TEST_DATA_SIZE = 100
TEST_MIN_DATA_SIZE = 80
DO_RAND_SIZE = False      #是否随即帧长
ETHERTYPE = 0x0800    # IPv4 Ethertype

# 自测回环测试
LOOP_TEST = True
ERROR_PROBABILITY = 1e-3    #错误概率
ERROR_BITS_RANGE= (1,100)    #错误bit数
